﻿using System.Collections.Generic;

namespace BloomFilter
{
    /// <summary>
    /// 
    /// </summary>
    public interface IBloomFilter
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="element"></param>
        /// <returns></returns>
        bool Add(byte[] element);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="elements"></param>
        /// <returns></returns>
        IList<bool> Add(IEnumerable<byte[]> elements);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="element"></param>
        /// <returns></returns>
        bool Contains(byte[] element);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        int[] ComputeHash(byte[] data);
    }
}